import App from './App';
import Vue from 'vue';
import './api/api';
import './public/config/GlobalConfig';
import './uni.promisify.adaptor';
import store from './store';
import uView from './uni_modules/uview-ui';
import pNavbar from './components/common/pNavbar.vue';
import pTabs from './components/common/pTabs.vue';
import pTabbar from './components/common/pTabbar.vue';
import loadingPage from './components/loadingPage.vue';


Vue.use(uView);
// nView默认单位配置为rpx
// uni.$u.config.unit = 'rpx'

// 注册全局组件
Vue.component('pNavbar', pNavbar);
Vue.component('pTabs', pTabs);
Vue.component('pTabbar', pTabbar);
Vue.component('loadingPage', loadingPage);

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
	...App
})
app.$mount();